{
if ($1 != t) {
   print $1, $5, $2, $3, $4
} else {
  if (($2 != s) || ($3 != u) || ($4 != v)) {
   print $1, $5, $2, $3, $4
  }
}
t=$1
s=$2
u=$3
v=$4
r=$5
}
